package com.lin.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 
 * </p>
 *
 * @author 林伟鸿
 * @since 2022-04-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(autoResultMap = true)
public class Talents implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "uid")
    private Integer uid;
    @NotBlank(message = "姓名不能为空")
    private String talentName;
    @NotNull(message = "年龄不能为空")
    private Integer talentAge;

    /**
     * 能力标签
     */
    @TableField(typeHandler = FastjsonTypeHandler.class)
    @NotEmpty(message = "技能标签不能为空")
    private List<String> talentTag;

    /**
     * 个人介绍
     */
    @NotBlank(message = "个人介绍不能为空")
    private String talentIntro;

    /**
     * 偏好领域
     */
    @TableField(typeHandler = FastjsonTypeHandler.class)
    @NotEmpty(message = "偏好领域不能为空")
    private List<String> pref;

    @TableField(fill = FieldFill.INSERT)
    private Long createTime;


}
